/**
 * Generate time : 2011-10-19 1:00:10
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cf.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCFAuthoritySelect table comment : 批示反馈
 */
public class ZMCFAuthoritySelect extends DaoEPBase {

	private String fdProblemId = " ";		/* 问题主键*/
	private String fdProblemTypeId = " ";		/* 问题类型*/
	private String fdCheckpersonId = " ";		/* 审批人*/
	private String fdCheckTime;	/* 审批时间*/
	private String fdCheckContent = " ";		/* 审批内容*/
	private String fdFeedbackpersonId = " ";		/* 反馈人ID*/
	private String fdStatus = " ";		/* 批示状态*/
	
	private String fdKeyId = " "; /* FD_KEY_ID */
	private String fdLeaderauthorityId = " "; /* 领导批示ID */
	private String fdFeedbackContent = " "; /* 反馈内容 */
	private String fdTime = " "; /* 反馈时间 */
	private String fdFeedbackperson = " "; /* 反馈人 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdProblemId");
		eiColumn.setFieldLength(32);	
		eiColumn.setDescName("问题主键");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdProblemTypeId");
		eiColumn.setFieldLength(32);	
		eiColumn.setDescName("问题类型");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdCheckpersonId");
		eiColumn.setFieldLength(32);	
		eiColumn.setDescName("审批人");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdCheckTime");
		eiColumn.setFieldLength(10);	
		eiColumn.setDescName("审批时间");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdCheckContent");
		eiColumn.setFieldLength(500);	
		eiColumn.setDescName("审批内容");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdFeedbackpersonId");
		eiColumn.setFieldLength(32);	
		eiColumn.setDescName("反馈人ID");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdStatus");
		eiColumn.setFieldLength(32);	
		eiColumn.setDescName("批示状态");
		eiMetadata.addMeta(eiColumn);
		
		//-------------------
		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("FD_KEY_ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdLeaderauthorityId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("领导批示ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFeedbackContent");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("反馈内容");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTime");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("反馈时间");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFeedbackperson");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("反馈人");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCFAuthoritySelect() {
		initMetaData();
	}

	/**
	 * get the fdProblemId - 问题主键
	 * @return the fdProblemId
	 */
	public String getFdProblemId() {
		return this.fdProblemId;
	}
	
	/**
	 * set the fdProblemId - 问题主键
	 */
	public void setFdProblemId(String fdProblemId) {
		this.fdProblemId = fdProblemId;
	}
	
	/**
	 * get the fdProblemTypeId - 问题类型
	 * @return the fdProblemTypeId
	 */
	public String getFdProblemTypeId() {
		return this.fdProblemTypeId;
	}
	
	/**
	 * set the fdProblemTypeId - 问题类型
	 */
	public void setFdProblemTypeId(String fdProblemTypeId) {
		this.fdProblemTypeId = fdProblemTypeId;
	}
	
	/**
	 * get the fdCheckpersonId - 审批人
	 * @return the fdCheckpersonId
	 */
	public String getFdCheckpersonId() {
		return this.fdCheckpersonId;
	}
	
	/**
	 * set the fdCheckpersonId - 审批人
	 */
	public void setFdCheckpersonId(String fdCheckpersonId) {
		this.fdCheckpersonId = fdCheckpersonId;
	}
	
	/**
	 * get the fdCheckTime - 审批时间
	 * @return the fdCheckTime
	 */
	public String getFdCheckTime() {
		return this.fdCheckTime;
	}
	
	/**
	 * set the fdCheckTime - 审批时间
	 */
	public void setFdCheckTime(String fdCheckTime) {
		this.fdCheckTime = fdCheckTime;
	}
	
	/**
	 * get the fdCheckContent - 审批内容
	 * @return the fdCheckContent
	 */
	public String getFdCheckContent() {
		return this.fdCheckContent;
	}
	
	/**
	 * set the fdCheckContent - 审批内容
	 */
	public void setFdCheckContent(String fdCheckContent) {
		this.fdCheckContent = fdCheckContent;
	}
	
	/**
	 * get the fdFeedbackpersonId - 反馈人ID
	 * @return the fdFeedbackpersonId
	 */
	public String getFdFeedbackpersonId() {
		return this.fdFeedbackpersonId;
	}
	
	/**
	 * set the fdFeedbackpersonId - 反馈人ID
	 */
	public void setFdFeedbackpersonId(String fdFeedbackpersonId) {
		this.fdFeedbackpersonId = fdFeedbackpersonId;
	}
	
	/**
	 * get the fdStatus - 批示状态
	 * @return the fdStatus
	 */
	public String getfdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 批示状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	
	//---------------------------------------
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdLeaderauthorityId - 领导批示ID
	 * 
	 * @return the fdLeaderauthorityId
	 */
	public String getFdLeaderauthorityId() {
		return this.fdLeaderauthorityId;
	}

	/**
	 * set the fdLeaderauthorityId - 领导批示ID
	 */
	public void setFdLeaderauthorityId(String fdLeaderauthorityId) {
		this.fdLeaderauthorityId = fdLeaderauthorityId;
	}

	/**
	 * get the fdFeedbackContent - 反馈内容
	 * 
	 * @return the fdFeedbackContent
	 */
	public String getFdFeedbackContent() {
		return this.fdFeedbackContent;
	}

	/**
	 * set the fdFeedbackContent - 反馈内容
	 */
	public void setFdFeedbackContent(String fdFeedbackContent) {
		this.fdFeedbackContent = fdFeedbackContent;
	}

	/**
	 * get the fdTime - 反馈时间
	 * 
	 * @return the fdTime
	 */
	public String getFdTime() {
		return this.fdTime;
	}

	/**
	 * set the fdTime - 反馈时间
	 */
	public void setFdTime(String fdTime) {
		this.fdTime = fdTime;
	}

	/**
	 * get the fdFeedbackperson - 反馈人
	 * 
	 * @return the fdFeedbackperson
	 */
	public String getFdFeedbackperson() {
		return this.fdFeedbackperson;
	}

	/**
	 * set the fdFeedbackperson - 反馈人
	 */
	public void setFdFeedbackperson(String fdFeedbackperson) {
		this.fdFeedbackperson = fdFeedbackperson;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdProblemId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProblemId")), fdProblemId));
		setFdProblemTypeId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProblemTypeId")), fdProblemTypeId));
		setFdCheckpersonId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCheckpersonId")), fdCheckpersonId));
		setFdCheckpersonId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCheckTime")), fdCheckTime));
		setFdCheckContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCheckContent")), fdCheckContent));
		setFdFeedbackpersonId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedbackpersonId")), fdFeedbackpersonId));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		
		//------------------
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdLeaderauthorityId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdLeaderauthorityId")), fdLeaderauthorityId));
		setFdFeedbackContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedbackContent")), fdFeedbackContent));
		setFdTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTime")), fdTime));
		setFdFeedbackperson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedbackperson")), fdFeedbackperson));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdProblemId",StringUtils.toString(fdProblemId, eiMetadata.getMeta("fdProblemId")));	
		map.put("fdProblemTypeId",StringUtils.toString(fdProblemTypeId, eiMetadata.getMeta("fdProblemTypeId")));	
		map.put("fdCheckpersonId",StringUtils.toString(fdCheckpersonId, eiMetadata.getMeta("fdCheckpersonId")));	
		map.put("fdCheckTime",StringUtils.toString(fdCheckTime, eiMetadata.getMeta("fdCheckTime")));	
		map.put("fdCheckContent",StringUtils.toString(fdCheckContent, eiMetadata.getMeta("fdCheckContent")));	
		map.put("fdFeedbackpersonId",StringUtils.toString(fdFeedbackpersonId, eiMetadata.getMeta("fdFeedbackpersonId")));	
		map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
		
		//-----------------------
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdLeaderauthorityId", StringUtils.toString(fdLeaderauthorityId, eiMetadata.getMeta("fdLeaderauthorityId")));
		map.put("fdFeedbackContent", StringUtils.toString(fdFeedbackContent, eiMetadata.getMeta("fdFeedbackContent")));
		map.put("fdTime", StringUtils.toString(fdTime, eiMetadata.getMeta("fdTime")));
		map.put("fdFeedbackperson", StringUtils.toString(fdFeedbackperson, eiMetadata.getMeta("fdFeedbackperson")));

		return map;

	}
}